package firstStage.part8;

/**
 * @ClassName: [StudentDemo1]
 * @Description: 标准学生类测试类
 * @Author: [黄劲松]
 * @CreateDate: [2021-02-07]
 * @Version: [v1.0]
 */
public class StudentDemo1 {
    public static void main(String[] args) {
        //使用无参数构造方法赋值
        Student1 s1 = new Student1();
        s1.setName("周翡");
        s1.setAge(18);
        s1.show();
        //使用带参数构造方法赋值
        Student1 s2 = new Student1("萧潇", 16);
        s2.show();

    }
}
